package com.lckd.ss.metadata;

/**
 * 递归值对的实现
 *
 * @author WangMi
 * @create 2022-10-27
 */
public class RecursiveValuePairImpl<T> extends ValuePairImpl implements RecursiveValuePair<T> {
	private static final long serialVersionUID = -727800019278L;
	// 父值
	private T parentValue;


	/**
	 * 根据名字和值进行构造
	 *
	 * @param name
	 *          名称
	 * @param value
	 *          值
	 * @param parentValue
	 * 			父值
	 */
	public RecursiveValuePairImpl(String name, T value, T parentValue) {
		super.text = name;
		super.value = value;
		this.parentValue = parentValue;
	}

	@Override
	public T getParentValue() {
		return parentValue;
	}

	@Override
	public void setParentValue(T parentValue) {
		this.parentValue = parentValue;
	}
}

